<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddQrcodeToGroupCourseOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('group_course_orders', function (Blueprint $table) {
            $table->string('audit_qrcode')->nullable()->after('cancel_reason')->comment('核销码(小程序二维码)');
            $table->string('audit_qrcode_weapp')->nullable()->after('audit_qrcode')->comment('核销码(小程序码)');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('group_course_orders', function (Blueprint $table) {
            $table->dropColumn(['audit_qrcode', 'audit_qrcode_weapp']);
        });
    }
}
